#!/usr/bin/python3
# -*- coding:utf-8 -*-
"""
@author: 蒋艰坚
@file: 人像数量搜索.py
@time: 2021/7/29 16:44
@desc: 
"""
import os


def FacenumSearch(file_dir, start, end):
    destfile = []
    for files in os.listdir(file_dir):
        number = os.path.splitext(files)[0].split(sep=' ')
        number = int(number[0])
        if number >= start & number <= end:
            destfile.append(files)
    return destfile

# if __name__ == '__main__':
#     dest = FacenumSearch('D:\麒麟杯\Kylin\QT_fore\picture', 10, 30)
#     print(dest)
